<template>
<div id="tip-info">
    <h4 class="content">{{content}}</h4>
    <span class="close" @click="handleClose">×</span>
</div>
</template>

<script>
export default {
    name: 'tipInfo'
}
</script>

<style scoped>
#tip-info {
    position: absolute;
    top: 0;
    left: 50%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 64%;
    height: 42px;
    padding-left: 24px;
    background-color: #3b9b6b;
    border-radius: 6px;
    box-shadow: 0 0 6px #3b9b6b;
    z-index: 99;
    transform: translateX(-50%);
    transition: .1s;
}
.content {
    flex: 1;
}
.close {
    width: 42px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    cursor: pointer;
}
.close:hover {
    color: red;
}
</style>
